package com.informationsystem.dao;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.transaction.annotation.Transactional;

import com.informationsystem.dao.GenericDao;

import com.informationsystem.model.Systemuser;

/**
 * An interface that provides a data management interface to the Systemuser table.
 */
public interface SystemuserDao extends GenericDao<Systemuser, Long> {
	@Transactional
    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
	@Transactional
	Systemuser getUserByUsername(String username) throws UsernameNotFoundException;
}